<template>
  <el-dialog
    v-model="store.deleteModel"
    title="删除工作任务"
    :before-close="
      (done) => {
        store.rowData = {};
        done();
      }
    "
  >
    <template #footer>
      <el-form :model="store.rowData" label-width="120px">
        <el-form-item label="ID">
          <el-input v-model="store.rowData.id" />
        </el-form-item>
      </el-form>
      <div class="dialog-footer">
        <el-button @click="store.deleteModel = false">取消</el-button>
        <el-button type="primary" @click="props.submit">确认</el-button>
      </div>
    </template>
  </el-dialog>
</template>
<script setup>
import { onMounted, ref } from "vue";
import { store } from "../store.js";
const props = defineProps({ submit: Function });
onMounted(() => {});
</script>
<style scoped>
.dialog-footer button:first-child {
  margin-right: 10px;
}
</style>
